package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wengys123
 * @since 2018-01-27
 */
@TableName("t_fee")
public class Fee extends Model<Fee> {

    private static final long serialVersionUID = 1L;

    /**
     * 收支ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 科目名称--费用名称
     */
    @TableField("fee_name")
    private String feeName;
    /**
     * 分类   0-系统 1-自定义
     */
    @TableField("fee_type")
    private Integer feeType;
    /**
     * 事务对象 多选 1本地事务 2 上游网点 3 收货人 4 中转网点 
     */
    @TableField("use_object")
    private String useObject;
    /**
     * 是否启动 0启动 1未启用
     */
    @TableField("is_use")
    private Integer isUse;
    /**
     * 备注
     */
    private String mark;
    /**
     * 收支类型 1 收入 2 支出
     */
    @TableField("payments_type")
    private Integer paymentsType;
    /**
     * 部门ID
     */
    @TableField("dept_id")
    private Integer deptId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 创建该费用名称的用户ID
     */
    @TableField("create_user_id")
    private Integer createUserId;
    /**
     * 运单相关 0 否 1 是
     */
    @TableField("is_waybill")
    private Integer isWaybill;
    /**
     * 是否 删除 0 否 1 是
     */
    @TableField("is_delete")
    private Integer isDelete;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFeeName() {
        return feeName;
    }

    public void setFeeName(String feeName) {
        this.feeName = feeName;
    }

    public Integer getFeeType() {
        return feeType;
    }

    public void setFeeType(Integer feeType) {
        this.feeType = feeType;
    }

    public String getUseObject() {
        return useObject;
    }

    public void setUseObject(String useObject) {
        this.useObject = useObject;
    }

    public Integer getIsUse() {
        return isUse;
    }

    public void setIsUse(Integer isUse) {
        this.isUse = isUse;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Integer getPaymentsType() {
        return paymentsType;
    }

    public void setPaymentsType(Integer paymentsType) {
        this.paymentsType = paymentsType;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public Integer getIsWaybill() {
        return isWaybill;
    }

    public void setIsWaybill(Integer isWaybill) {
        this.isWaybill = isWaybill;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Fee{" +
        "id=" + id +
        ", feeName=" + feeName +
        ", feeType=" + feeType +
        ", useObject=" + useObject +
        ", isUse=" + isUse +
        ", mark=" + mark +
        ", paymentsType=" + paymentsType +
        ", deptId=" + deptId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUserId=" + createUserId +
        ", isWaybill=" + isWaybill +
        ", isDelete=" + isDelete +
        "}";
    }
}
